<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="/css/login.css">
    <link rel="stylesheet" href="/bootstrap-4.6.2-dist/css/bootstrap.min.css">

    <script src="/js/jquery-3.3.1.min.js"></script>
    <script src="/js/jquery.validate.min.js"></script>
    <script src="/js/login.js"></script>
    <script src="/css/login.css"></script>

</head>
<body  style="background-image: url('/images/R-C.png');
             background-size: cover;
             background-position: center;
             background-repeat: no-repeat;">

<div class="a">
    <h1 class="text-primary" >登录</h1>
    <form id="loginForm" action="/login" method="post">
        <p>用户名：<input  type="text" id="loginn"  name="loginn" class="title"></p>
        <p>密 码：<input type="password" name="pass" class="title"></p>

            <button class="btn btn-info">登录</button>
            <span th:text="${msg}"></span></p>
        <p>还没有账户，可以去<a href="/apply/toregister">注册</a></p>
    </form>
</div>
<script>
    window.onload = function() {
        // 检查是否有注册成功的标记
        const urlParams = new URLSearchParams(window.location.search);
        if (urlParams.get('registerSuccess') === 'true') {
            // 显示成功提示
            alert('信用卡申请成功');
        }
    }
</script>
</body>
</html>